
<div class="container-fluid">
    <div class="wrapper">

        <div class="panel" id="nav">
            <div class="panel-heading"><h3 class="panel-title">批量物流追踪</h3></div>
            <div class="panel-body">
                <form action="__URL__/batchedittrans"  method="post" enctype="multipart/form-data" class="form-horizontal">

                    <div class="form-group">
                        <label  class="col-md-2">导入模板：</label>
                        <div class="col-md-6 col-sm-10" style="cursor:pointer; ">
                            <a id="download" class="icon-arrow-down">下载导入模板(支持xls,xlsx格式文件)</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2">导入:</label>
                        <div class="col-md-3 col-sm-10">
                            <input class="btn" type="file"    name="file"  value=""  style="width: 100%"  />
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-offset-2 col-md-6">
                            <input type="hidden" name="insert" value="insert">
                            注：日期格式必须为yyyy-mm-dd hh:ii:ss(例：2017-03-03 10:48:01，且即使不填写时分秒也应补全为：2017-03-04 00:00:00)
                            <br><input class="btn btn-success" type="submit" name="" value="导入" />
                        </div>
                    </div>
                </form>


                <div>
                    <?php if(!empty($result)) echo $result;?>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $("#download").click(function () {
        var fileName="批量物流追踪模板";
        var list=new Array(["物流计划单号"],["物流状态"],["物流追踪码"],["承运商服务"],["目的国派送代理"],["预计提货时间"],
                ["到港时间"],["起飞时间"], ["到目的地时间"],["清关时间"],["派送时间"]);
        var list1= new Array(["170303104733382"],["已到货"],["67868"],["笨鸟-空加派"],["hujihiuj"],
                ["2017-03-03 10:48:01"],["2017-03-04 00:00:00"],["2017-03-05 00:00:00"],["2017-03-06 00:00:00"],
                ["2017-03-07 00:00:00"],["2017-03-08 00:00:00"]);
        window.location.href ="Inbound/Prepareneeds/download?"+"&fileName="+fileName+"&list="+list+"&list1="+list1;
    });
</script>
